﻿using AbpOne.Domain;
using Microsoft.AspNetCore.Builder;
using Volo.Abp;
using Volo.Abp.Modularity;

namespace AbpOne.Swagger {
    [DependsOn(
        typeof(AbpOneDomainModule)
    )]
    public class AbpOneSwaggerModule : AbpModule {
        public override void ConfigureServices(ServiceConfigurationContext context) {
            context.Services.AddSwagger();
        }

        public override void OnApplicationInitialization(ApplicationInitializationContext context) {
            context.GetApplicationBuilder().UseSwagger().UseSwaggerUi();
        }
    }
}